<?php
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/class/Model/Model.user.php");
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/class/class.UserManagement.php");

$user = new Model_user();
$user->email = $_POST["uname"];

$um=new UserManagement();
$r = $um->UserExist($user);
header('Content-type: application/json');
$arr = array();
if($r==false)
    $arr["value"] = true;//MySimpleValidate.js约定的值
else
    $arr["value"] = false;
echo json_encode($arr);
?>